<!DOCTYPE html>
<html>
<head>
    <title>Curve by Point Interpolation</title>

    <script src="js/verb.min.js"></script>
    <script src="js/three.min.js"></script>
    <script src="js/verbToThreeConversion.js"></script>
    <script src="js/OrbitControls.js"></script>
    <script src="js/codemirror.js"></script>
    <script src="js/javascript.js"></script>
    <script src="js/threeBasic.js"></script>

    <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300' rel='stylesheet' type='text/css'>

    <link rel="stylesheet" href="css/codemirror.css">
    <link rel="stylesheet" href="css/example.css">
    <link rel="stylesheet" href="css/colorforth.css">
</head>
<body>

<div id="button">Show/Hide Code</div>
<div id="viewer" class="col">
    <div id="title"></div>
</div>
<div id="code-container" class="col scroll-y"></div>

</body>
<script id="script">
	setupScene();

	var p1 = [-10,0,0], p2 = [10,0,0], p3 = [10,10,0], p4 = [0,10,0], p5 = [5, 5, 0];
	var pts = [p1, p2, p3, p4, p5];
	var interpCurve = verb.geom.NurbsCurve.byPoints( pts, 3 );

	addCurveToScene( interpCurve.toThreeGeometry() );

	addPointsToScene( pts );

	renderScene();
</script>

<script src="js/example.js"></script>

</html>